package yl.hs.bmipfull.pojo.flow;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.util.Date;

/**
 * 作用:  流程日志表实体类<br/>
 * 创建时间: 2021年06月25日 09时16分50秒 <br/>
 *
 * @author 张凯
 */
@DBTable(disName = "流程日志表", mapCode = "flow_log")
public class FlowLogEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "流程日志表编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "FLOG")
    private String sn;
    /**
     * 流程数据编号
     */
    private String flowSN;
    /**
     * 操作者编号
     */
    private String userSN;

    /**
     * 数据流程编号
     */
    private String flowDataSn;

    /**
     * 操作者姓名
     */
    private String userName;
    /**
     * 操作者姓名拼音
     */
    private String userNamePY;
    /**
     * 操作时间
     */
    private Date handlerTime;
    /**
     * 操作结果
     */
    private Short result;
    /**
     * 审批意见
     */
    private String remark;
    /**
     * 节点编号
     */
    private String nodeSN;
    /**
     * 操作类型(发起/审批)
     */
    private Short actionType;

    public FlowLogEntity() {
    }

    public FlowLogEntity(String flowSN, String userSN, String flowDataSn, String userName, Date handlerTime, Short result, String remark, String nodeSN, Short actionType) {
        this.flowSN = flowSN;
        this.userSN = userSN;
        this.flowDataSn = flowDataSn;
        this.userName = userName;
        this.handlerTime = handlerTime;
        this.result = result;
        this.remark = remark;
        this.nodeSN = nodeSN;
        this.actionType = actionType;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getFlowSN() {
        return this.flowSN;
    }

    public void setFlowSN(String flowSN) {
        this.flowSN = flowSN;
    }

    public String getUserSN() {
        return this.userSN;
    }

    public void setUserSN(String userSN) {
        this.userSN = userSN;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNamePY() {
        return this.userNamePY;
    }

    public void setUserNamePY(String userNamePY) {
        this.userNamePY = userNamePY;
    }

    public Date getHandlerTime() {
        return this.handlerTime;
    }

    public void setHandlerTime(Date handlerTime) {
        this.handlerTime = handlerTime;
    }

    public Short getResult() {
        return this.result;
    }

    public void setResult(Short result) {
        this.result = result;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getNodeSN() {
        return this.nodeSN;
    }

    public void setNodeSN(String nodeSN) {
        this.nodeSN = nodeSN;
    }

    public Short getActionType() {
        return this.actionType;
    }

    public void setActionType(Short actionType) {
        this.actionType = actionType;
    }

    public String getFlowDataSn() {
        return flowDataSn;
    }

    public void setFlowDataSn(String flowDataSn) {
        this.flowDataSn = flowDataSn;
    }
}